package com.pan.admin.module.loanUser.entity;

import com.pan.admin.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * @Description: 用户所属机构
 * @Author: ghb
 * @Date: 2023/10/23 15:00
 */

public class LoanUserRegisterProduct extends BaseEntity {
    /**
     * 主键id
     */
    private Integer loanProductId;

    /**
     * 用户ID
     */
    private Long loanUserId;

    /**
     * 产品名称
     */
    private String name;

    /**
     * 产品链接
     */
    private String link;

    /**
     * 结算价格
     */
    private BigDecimal price;

    /**
     * 产品LOGO地址
     */
    private String logoPath;

    /**
     * 产品类型(0线下机构，1全国机构)
     */
    private String type;

    /**
     * 开放时间24小时制，格式:（09:00-15:00）
     */
    private String openTime;

    /**
     * 状态0禁用1启用(默认启用)
     */
    private Integer status;

    /**
     * 匹配额度
     */
    private String textMatch;

    /**
     * 最高额度
     */
    private String textMax;

    /**
     * 额度范围
     */
    private String textRange;

    /**
     * 年利率
     */
    private String textAnnualRate;

    /**
     * 月利率
     */
    private String textMonthlyRate;

    /**
     * 贷款期限
     */
    private String textTerm;

    /**
     * 利率文案(文本内容)
     */
    private String textDoc;

    /**
     * 第三方撞库接口地址
     */
    private String apiCrashLibrary;

    /**
     * 第三方联合登陆接口地址
     */
    private String apiLogin;

    /**
     * 联系人姓名
     */
    private String contactName;

    /**
     * 联系人电话
     */
    private String contactPhone;

    /**
     * 联系方式
     */
    private String contactType;


    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getLink() {
        return link;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setLogoPath(String logoPath) {
        this.logoPath = logoPath;
    }

    public String getLogoPath() {
        return logoPath;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setOpenTime(String openTime) {
        this.openTime = openTime;
    }

    public String getOpenTime() {
        return openTime;
    }

    public void setTextMatch(String textMatch) {
        this.textMatch = textMatch;
    }

    public String getTextMatch() {
        return textMatch;
    }

    public void setTextMax(String textMax) {
        this.textMax = textMax;
    }

    public String getTextMax() {
        return textMax;
    }

    public void setTextRange(String textRange) {
        this.textRange = textRange;
    }

    public String getTextRange() {
        return textRange;
    }

    public void setTextAnnualRate(String textAnnualRate) {
        this.textAnnualRate = textAnnualRate;
    }

    public String getTextAnnualRate() {
        return textAnnualRate;
    }

    public void setTextMonthlyRate(String textMonthlyRate) {
        this.textMonthlyRate = textMonthlyRate;
    }

    public String getTextMonthlyRate() {
        return textMonthlyRate;
    }

    public void setTextTerm(String textTerm) {
        this.textTerm = textTerm;
    }

    public String getTextTerm() {
        return textTerm;
    }

    public void setTextDoc(String textDoc) {
        this.textDoc = textDoc;
    }

    public String getTextDoc() {
        return textDoc;
    }

    public void setApiCrashLibrary(String apiCrashLibrary) {
        this.apiCrashLibrary = apiCrashLibrary;
    }

    public String getApiCrashLibrary() {
        return apiCrashLibrary;
    }

    public void setApiLogin(String apiLogin) {
        this.apiLogin = apiLogin;
    }

    public String getApiLogin() {
        return apiLogin;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getContactType() {
        return contactType;
    }

    public void setContactType(String contactType) {
        this.contactType = contactType;
    }

    public Integer getLoanProductId() {
        return loanProductId;
    }

    public void setLoanProductId(Integer loanProductId) {
        this.loanProductId = loanProductId;
    }

    public Long getLoanUserId() {
        return loanUserId;
    }

    public void setLoanUserId(Long loanUserId) {
        this.loanUserId = loanUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("loanProductId", getLoanProductId())
                .append("userId", getLoanUserId())
                .append("name", getName())
                .append("link", getLink())
                .append("price", getPrice())
                .append("logoPath", getLogoPath())
                .append("type", getType())
                .append("openTime", getOpenTime())
                .append("status", getStatus())
                .append("textMatch", getTextMatch())
                .append("textMax", getTextMax())
                .append("textRange", getTextRange())
                .append("textAnnualRate", getTextAnnualRate())
                .append("textMonthlyRate", getTextMonthlyRate())
                .append("textTerm", getTextTerm())
                .append("textDoc", getTextDoc())
                .append("apiCrashLibrary", getApiCrashLibrary())
                .append("apiLogin", getApiLogin())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("contactName", getContactName())
                .append("contactPhone", getContactType())
                .append("contactType", getContactType())
                .toString();
    }
}
